From: GNU Libc Maintainers Date: Tue, 24 Sep 2024 19:46:16 +0000 (+0200) Subject: unsubmitted-ldso-multilib X-Git-Tag: archive/raspbian/2.40-3+rpi1^2~66 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=20401a0552b0607405cf6ca2cbc1118d328ac344;p=glibc.git unsubmitted-ldso-multilib Gbp-Pq: Topic arm Gbp-Pq: Name unsubmitted-ldso-multilib.diff --- diff --git a/elf/dl-load.c b/elf/dl-load.c index 8a89b7101..dfb4b7d03 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -1655,6 +1655,17 @@ open_verify (const char *name, int fd, __set_errno (ENOENT); return -1; } +#ifdef __arm__ + else if (!VALID_FLOAT_ABI (ehdr->e_flags)) + { + /* This is not a fatal error. On architectures where + soft-float and hard-float binaries can be run this + might happen. */ + __close_nocancel (fd); + __set_errno (ENOENT); + return -1; + } +#endif else if (ehdr->e_ident[EI_DATA] != byteorder) { if (BYTE_ORDER == BIG_ENDIAN)